﻿<Window x:Class="PhpDocBlockGenerator.Views.StatisticsWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Zusammenfassung der Operation" Height="400" Width="500" 
        DataContext="{Binding Statistics, Source={StaticResource Locator}}"
        ResizeMode="NoResize" >
    <Grid Margin="5,0">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="50" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="25" />
            <RowDefinition Height="25" />
            <RowDefinition Height="25" />
            <RowDefinition Height="25" />
            <RowDefinition Height="25" />
            <RowDefinition Height="25" />
            <RowDefinition Height="25" />
            <RowDefinition Height="*" />
            <RowDefinition Height="40" />
        </Grid.RowDefinitions>
        <Label Grid.ColumnSpan="2" Grid.Row="0" Content="Die Operation wurde erfolgreich ausgeführt." />
        <Label Grid.Row="2">Zusammenfassung:</Label>
        
        <!-- found files -->
        <Label Grid.Row="3">Gefundene Dateien</Label>
        <Label Grid.Row="3" Grid.Column="1" Content="{Binding Statistic.FileCount}" HorizontalAlignment="Right"></Label>

        <!-- changed files -->
        <Label Grid.Row="4">Veränderte Dateien</Label>
        <Label Grid.Row="4" Grid.Column="1" Content="{Binding Statistic.FilesChanged}" HorizontalAlignment="Right"></Label>

        <!-- excepted files -->
        <Label Grid.Row="5">Unveränderte Dateien</Label>
        <Label Grid.Row="5" Grid.Column="1" Content="{Binding Statistic.FilesExcepted}" HorizontalAlignment="Right"></Label>
        
        <!-- List of excepted files -->
        <Label Grid.Row="6">Liste von ausgenommenen Dateien:</Label>
        <ListView Grid.Row="7" Grid.ColumnSpan="2" VerticalAlignment="Stretch" ItemsSource="{Binding Statistic.ExceptedFiles}"></ListView>

        <Button Grid.Row="8" Grid.ColumnSpan="2" HorizontalAlignment="Right" VerticalAlignment="Center" Content="OK" Height="25" Width="50" Click="Button_Click" />

    </Grid>
</Window>
